
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"/>
    <link href="css/style.css" rel="stylesheet"/>
    <link href="css/base.css" rel="stylesheet"/>
    <script src="js/jquery1.42.min.js" type="text/javascript"></script>
    <script src="js/jquery.SuperSlide.2.1.3.js" type="text/javascript"></script>
    <script src="js/flexible.min.js" type="text/javascript"></script>
    <title>公告</title>
</head>
<body style="background-color: rgb(242,242,242);">
<div>
    <ul>

            <c:forEach items="${notice}" var="notice">
        <li class="announcement"><a href="/mobile/noticeDetails?id=${notice.id}" style="width: 100%;">
            <div class="anncouncement_title">${notice.title}</div>
            <div class="anncouncement_content">${notice.content}</div>
            <div class='deta'>${notice.createTime}</div>
            <div  class="detail"><div onclick="showDetails(${notice.id})">查看详情</div><div> ></div></div>
        </a></li>
            </c:forEach>
        <script type="text/javascript">
            function showDetails(id){

                window.location.href="/mobile/noticeDetails?id="+id;
            }
        </script>

    </ul>
</div>
</body>
</html>